import request from '@/utils/request'
/**
 *获取轮播图片
 * @returns Promise
 */
export const homeSwiperAPI = () => {
  return request({
    url: '/home/swiper'
  })
}
/**
 *租房小组
 * @param {string|number} id 城市id
 * @returns Promise
 */
export const homeGroupsAPI = (area) => {
  return request({
    url: '/home/groups',
    params: {
      area
    }
  })
}
/**
 * 咨询
 * @param {string|number} area 地区的id
 * @returns  Promise
 */
export const homeNewsAPI = (area) => {
  return request({
    url: '/home/news',
    params: {
      area
    }
  })
}
